package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class MdMedDmtb implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idDmtb;

    private String idDimgrp;

    private String cdDimgrp;

    private String idTb;

    private String idIndex;

    private String naIndex;

    private Boolean fgAct;

    public String getIdDmtb() {
        return idDmtb;
    }

    public void setIdDmtb(String idDmtb) {
        this.idDmtb = idDmtb;
    }

    public String getIdDimgrp() {
        return idDimgrp;
    }

    public void setIdDimgrp(String idDimgrp) {
        this.idDimgrp = idDimgrp;
    }

    public String getCdDimgrp() {
        return cdDimgrp;
    }

    public void setCdDimgrp(String cdDimgrp) {
        this.cdDimgrp = cdDimgrp;
    }

    public String getIdTb() {
        return idTb;
    }

    public void setIdTb(String idTb) {
        this.idTb = idTb;
    }

    public String getIdIndex() {
        return idIndex;
    }

    public void setIdIndex(String idIndex) {
        this.idIndex = idIndex;
    }

    public String getNaIndex() {
        return naIndex;
    }

    public void setNaIndex(String naIndex) {
        this.naIndex = naIndex;
    }

    public Boolean getFgAct() {
        return fgAct;
    }

    public void setFgAct(Boolean fgAct) {
        this.fgAct = fgAct;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedDmtb other = (MdMedDmtb) that;
        return (this.getIdDmtb() == null ? other.getIdDmtb() == null : this.getIdDmtb().equals(other.getIdDmtb()))
            && (this.getIdDimgrp() == null ? other.getIdDimgrp() == null : this.getIdDimgrp().equals(other.getIdDimgrp()))
            && (this.getCdDimgrp() == null ? other.getCdDimgrp() == null : this.getCdDimgrp().equals(other.getCdDimgrp()))
            && (this.getIdTb() == null ? other.getIdTb() == null : this.getIdTb().equals(other.getIdTb()))
            && (this.getIdIndex() == null ? other.getIdIndex() == null : this.getIdIndex().equals(other.getIdIndex()))
            && (this.getNaIndex() == null ? other.getNaIndex() == null : this.getNaIndex().equals(other.getNaIndex()))
            && (this.getFgAct() == null ? other.getFgAct() == null : this.getFgAct().equals(other.getFgAct()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdDmtb() == null) ? 0 : getIdDmtb().hashCode());
        result = prime * result + ((getIdDimgrp() == null) ? 0 : getIdDimgrp().hashCode());
        result = prime * result + ((getCdDimgrp() == null) ? 0 : getCdDimgrp().hashCode());
        result = prime * result + ((getIdTb() == null) ? 0 : getIdTb().hashCode());
        result = prime * result + ((getIdIndex() == null) ? 0 : getIdIndex().hashCode());
        result = prime * result + ((getNaIndex() == null) ? 0 : getNaIndex().hashCode());
        result = prime * result + ((getFgAct() == null) ? 0 : getFgAct().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idDmtb=").append(idDmtb);
        sb.append(", idDimgrp=").append(idDimgrp);
        sb.append(", cdDimgrp=").append(cdDimgrp);
        sb.append(", idTb=").append(idTb);
        sb.append(", idIndex=").append(idIndex);
        sb.append(", naIndex=").append(naIndex);
        sb.append(", fgAct=").append(fgAct);
        sb.append("]");
        return sb.toString();
    }
}